﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PPIDesktopClient.Entities
{
    public class EBaseSettings : ICloneable
    {
        protected string m_Key;
        protected string m_Value;
        protected Int32 m_Id;
        protected string m_Text;

        public string Key
        {
            get { return m_Key; }
        }
        public Int32 Id 
        {
            get { return m_Id; }
            set { m_Id = value; }
        }
        public string Value
        {
            get { return m_Value; }
            set { m_Value = value; }
        }
        public string Text
        {
            get { return m_Text; }
            set { m_Text = value; }
        }


        public EBaseSettings()
        {
            m_Key = "";
            m_Value = "";
            m_Id = Int32.MinValue;
            m_Text = "";
        }


        #region ICloneable Members

        public object Clone()
        {
            EBaseSettings _cloneSettings = new EBaseSettings();
            _cloneSettings.m_Key = m_Key;
            _cloneSettings.m_Text = m_Text;
            _cloneSettings.m_Id = m_Id;
            _cloneSettings.m_Value = m_Value;
            return _cloneSettings;
        }

        #endregion
    }
}
